/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mysimpatico.sqlwrapper;

/**
 *
 * @author simpatico
 */
public class ColumnNode implements Component{

    private final Column col;
    private final SelectableFrom table;

    public ColumnNode(final Column col){
        this(null,col);
    }

    public ColumnNode(final SelectableFrom table, final Column col){
        this.col = col;
        this.table = table;
    }

    
    @Override
    public String toString(){
       return ((table != null)? table.getName() + "."  :"") + col.getName();
    }
    
}
